<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<script type="text/javascript">
    function page(n,s){
        $("#pageNo").val(n);
        $("#pageSize").val(s);
        $("#searchForm").submit();
        return false;
    }
</script>
<div class="content-wrap">
    <div class="wrapper" style="bottom: 50px;">
        <ul class="nav nav-tabs">
            <li><a href="#" onclick="loadDiv('nurseIndexDiv','${ctx}/nurse/index')">床位列表</a></li>
            <li class="active"><a href="#">出院通知单</a></li>
        </ul>
         <section class="panel panel-default">
            <div class="panel-body">
                <div class="table-responsive no-border">
                    <div class="datatable-top">
                        <div class="pull-left">
                            <form:form id="searchForm" modelAttribute="preDischgedPats"
                                       onsubmit="return loadDivForm('nurseIndexDiv','searchForm','${ctx}/doctor/preDischgedPats/nurseIndex');"
                                       method="post" class="form-inline">
                                <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
                                <input id="pageSize" name="pageSize" type="hidden"  value="${page.pageSize}"/>
                            </form:form>
                        </div>
                    </div>

                    <table id="contentTable" class="table table-bordered mg-t datatable">
                        <thead>
                        <tr>
                            <th>床号</th>
                            <th>姓名</th>
                            <th>性别</th>
                            <th>入院日期</th>
                            <th>预计出院时间</th>
                            <th>出院方式</th>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach items="${page.list}" var="pre">
                            <tr>
                                <td> ${pre.bedNo}</td>
                                <td> ${pre.name}</td>
                                <td> ${fns:getDictLabel(pre.sex,'SEX_DICT','')}</td>
                                <td> <fmt:formatDate value="${pre.admissionDate}"  pattern="yyyy-MM-dd"/></td>
                                <td> <fmt:formatDate value="${pre.preDischargeDate}"  pattern="yyyy-MM-dd HH:mm:ss"/></td>
                                <td>
                                 ${fns:getDictLabel(pre.dischargeMethod,'DISCHARGE_DISPOSITION_DICT', '')}
                                </td>
                             </tr>
                        </c:forEach>
                     </table>
                    <div class="pagination">${page}</div>
                </div>
            </div>
        </section>
    </div>
</div>